FROM docker.m.daocloud.io/openjdk:21-jdk-slim

LABEL authors="iQNRen"
LABEL maintainer="2116377053@qq.com"

ENV PORT=8088

COPY target/PremiumHotelSystem-0.0.1-SNAPSHOT.jar app.jar

ENTRYPOINT ["java","-jar","/app.jar"]

EXPOSE $PORT

HEALTHCHECK --interval=30s --timeout=10s --retries=3 CMD curl -f http://localhost:8081/actuator/health || exit 1